package com.kushe.site.form;

import org.jreform.HtmlForm;
import org.jreform.Input;

import static org.jreform.criteria.Criteria.length;
import static org.jreform.criteria.Criteria.minLength;

/**
 * Created by WSDevotion on 2015/5/3.
 */
public class TopicsForm extends HtmlForm {
    public TopicsForm() {
        input(stringType(), "name", length(2, 30));
        input(stringType(), "topic_text", minLength(1));

    }

    public Input getName() {
        return getInput("name");
    }

    public Input getTopic_text() {
        return getInput("topic_text");
    }
}
